package com.tiger.project.service.impl;

import java.util.List;

import com.tiger.project.domain.AssetCollectionRecord;
import com.tiger.project.mapper.AssetCollectionRecordMapper;
import com.tiger.project.service.IAssetCollectionRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 【租金进账】Service业务层处理
 *
 * @author standard
 * @date 2022-10-08
 */
@Service
public class AssetCollectionRecordServiceImpl implements IAssetCollectionRecordService {
    @Autowired
    private AssetCollectionRecordMapper assetCollectionRecordMapper;

    /**
     * 查询【租金进账】
     *
     * @param id 【租金进账】主键
     * @return 【租金进账】
     */
    @Override
    public AssetCollectionRecord selectAssetCollectionRecordById(Long id) {
        return assetCollectionRecordMapper.selectAssetCollectionRecordById(id);
    }

    /**
     * 查询【租金进账】列表
     *
     * @param assetCollectionRecord 【租金进账】
     * @return 【租金进账】
     */
    @Override
    public List<AssetCollectionRecord> selectAssetCollectionRecordList(AssetCollectionRecord assetCollectionRecord) {
        return assetCollectionRecordMapper.selectAssetCollectionRecordList(assetCollectionRecord);
    }

    /**
     * 新增【租金进账】
     *
     * @param assetCollectionRecord 【租金进账】
     * @return 结果
     */
    @Override
    public int insertAssetCollectionRecord(AssetCollectionRecord assetCollectionRecord) {
        return assetCollectionRecordMapper.insertAssetCollectionRecord(assetCollectionRecord);
    }

    /**
     * 修改【租金进账】
     *
     * @param assetCollectionRecord 【租金进账】
     * @return 结果
     */
    @Override
    public int updateAssetCollectionRecord(AssetCollectionRecord assetCollectionRecord) {
        return assetCollectionRecordMapper.updateAssetCollectionRecord(assetCollectionRecord);
    }

    /**
     * 批量删除【租金进账】
     *
     * @param ids 需要删除的【租金进账】主键
     * @return 结果
     */
    @Override
    public int deleteAssetCollectionRecordByIds(Long[] ids) {
        return assetCollectionRecordMapper.deleteAssetCollectionRecordByIds(ids);
    }

    /**
     * 删除【租金进账】信息
     *
     * @param id 【租金进账】主键
     * @return 结果
     */
    @Override
    public int deleteAssetCollectionRecordById(Long id) {
        return assetCollectionRecordMapper.deleteAssetCollectionRecordById(id);
    }
}
